In this document, I will compare the epidemiological and evolutionary dynamics of the stochastic, individual-based, nested model that includes immunological feedbacks. I will not recap the within-host immune-parasite interaction model, as that is done elsewhere, but I will lay out some of the details of the epidemiological model. The basic model is quite simple. Hosts give birth according to a simple density-dependent, logistic function. Both susceptible and infected hosts can reproduce (appropriate for the type of parasite we are modeling, which can sustain chronic infections), but all hosts are born susceptible. The contact process is also density-dependent; the deterministic model would be \(c S I\), where \(c\) is the contact rate per infected host. We assume a similar contact process here. Infected hosts die from infection at a rate \(v P\), where \(v\) is the per-parasite exploitation rate and \(P\) is the dynamic within-host parasite load. Note that I do not assume that \(P\) affects the contact process. However, \(P\) does affect the size of the infectious dose; I assume that the infectious dose is Poisson random variable with mean and variance equal to 10% of the current parasite burden \(P\). When an infection occurs, I draw the dose from a Poisson distribution; if the dose is equal to zero, then the infection fails. I also assume that the per-parasite exploitation rate \(v\) affects the maximum within-host replication rate, according to the function \(\frac{b_{max} v}{v_0 + v}\). Thus any potential transmission-virulence trade-off is built in mechanistically, and thus in a (potentially) more biologically plausible way.]
Interestingly, this sets up a situation where the immunological details will determine whether or not a transmission-virulence trade-off exists or not. Specifically, if increasing dose makes a chronic infection more likely, then there is always a transmission benefit of increasing virulence. However, if increasing dose makes a chronic infection less likely, then increasing virulence only increases transmission to the extent that it makes it more likely that the infectious dose is non-zero.
Stochasticity is incorporated by simulating the deterministic system using a Gillespie algorithm. Specifically, I compute the rates of all possible events:
Production of Th1 or Th2 cells according to \(b_i + c_i \frac{P}{C_i+P} + \frac{T_i^2}{S_i^2+T_i^2}\frac{I_{ij}}{I_{ij}+T_j}\);
Loss of Th1 or Th2 cells according to \(m T_i\);
Parasite growth according to \(b_{max} \frac{v}{v_0+v} P \left(1 - \frac{P}{K_P}\right)\);
Parasite loss according to \(a T_2 P\);
Parasite-induced host death according to \(v P\);
Host birth according to \(r (S+I) \left(1 - \frac{S+I}{K}\right)\);
Infectious contact according to \(c S I\).
Note that for rates 1-6, there are as many rates to compute as there are infectious hosts, because e.g., the rate of Th1 cell production in host 1 will be different from host 2 because it had a different infectious dose, is at a different point in the infection timecourse, or has a different stochastic history of events affecting it.
If a new infection occurs, a susceptible and infected host are chosen at random. The newly infected host has a dose that determines on infection load in the infecting host. The virulence of this new infection may differ from that of the infecting host; this allows evolution of virulence. Specifically, the virulence of the new infection is drawn from a lognormal distribution with mean equal to the virulence in the infecting host and a variance that is set by the user. The initial Th1 and Th2 state of the newly infected host is what I am varying across the simulations below.
I consider four possible initial immune states, which I say define the “immunological landscape” for the parasite.
All newly infected hosts are immunologically naive (\(T_1=T_2=0\)); this produces chronic infections regardless of the initial infecting dose.
All newly infected hosts are Th2-biased (\(T_1=500, T_2=700\)); this produces acute infections regardless of the initial infecting dose.
All newly infected hosts are Th1-biased (\(T_1=700, T_2=500\)); this produces chronic infections at low doses and acute infections at high doses, at least for the initial virulence (as virulence evolves, the initial immune states that give rise to outcomes that vary with dose change).
Newly infected hosts have an immune state that is drawn from a uniform distribution; specifically, \(T_2\) is drawn from a uniform distribution with min 400 and max 800, and \(T_1 = 1200-T_2\). This produces variation in outcomes with dose regardless of the evolved value of \(v\).
I also considered a variant of (4), but where there was more of an initial Th2 bias (\(T_2\) was drawn from a uniform distribution with min 400 and max 1000).
Of course, there are infinite possibilities for how to set this up!
Figure 2.1: Number of infected hosts across 50 stochastic replicate simulations when all infected hosts start immunologically naive.
Unsurprisingly, all of the simulations quickly approach a state where almost every host is infected. In fact, the equilibrium prevalence of infection is 0.99. Because of this, there is very little variation in outcomes from one simulation to another, at least when looking at the epidemiological dynamics.
Figure 2.2: Mean number of infected hosts, averaged across 50 stochastic replicates, when all infected hosts start immunologically naive. The equilibrium prevalence is given in the top right corner.
If we instead assume that every newly infected host has a Th2-bias in its immune state, then infections will always be acute. I would predict that this should reduce infection prevalence, which it does, and that epidemic fade-outs should be common, which they are.
Figure 2.3: Number of infected hosts across 50 stochastic replicate simulations when all infected hosts start with Th2-biased immunity. Red lines show replicates that eventually went extinct.
Figure 2.4: Mean number of infected hosts, averaged across 50 stochastic replicates, when all infected hosts start Th2-biased. The equilibrium prevalence is given in the top right corner.
In this scenario, newly infected hosts start out Th1-biased, which creates dose-dependence in infection outcomes: if the initial dose is small, then infections are more likely to be chronic; if the initial dose is large, then infections are more likely to be acute. However, this only holds at the starting level of virulence. What I find is that, ultimately, the dynamics look much more like the dynamics when all infections were acute, although the equilibrium prevalence is lower.
Figure 2.5: Number of infected hosts across 50 stochastic replicate simulations when all infected hosts start with Th1-biased immunity.
Figure 2.6: Mean number of infected hosts, averaged across 50 stochastic replicates, when all infected hosts start Th1-biased. The equilibrium prevalence is given in the top right corner.
The difference in prevalence can be attributed to the fact that recoveries are more common when the initial immune state is such that infection outcome is variable.
Figure 2.7: Comparing the number of recoveries from case 1 (always chronic), case 2 (always acute) and case 3 (variable).
In this simulation, the initial immune state is variable - hosts may start out Th1- or Th2-biased. I predicted that this should inject considerably more variation into the infection outcomes. Interestingly, however, that is not what I see. The results are almost identical to the results from the previous case, where immunity was always initially Th1-biased.
Figure 2.8: Number of infected hosts across 50 stochastic replicate simulations when the immune state of newly infected hosts is variable.
Figure 2.9: Mean number of infected hosts, averaged across 50 stochastic replicates, when initial immune state is always variable. The equilibrium prevalence is given in the top right corner.
Interestingly, even if I allow for even more of a Th2-bias in the initial immune state, the dynamics are almost identical to the case where all infections are chronic, although there are some simulations that went extinct and the mean prevalence is a bit lower.
Figure 2.10: Number of infected hosts across 50 stochastic replicate simulations when the immune state of newly infected hosts is variable.
Figure 2.11: Mean number of infected hosts, averaged across 50 stochastic replicates, when initial immune state is always variable. The equilibrium prevalence is given in the top right corner.
In particular, classic theory (e.g., adaptive dynamics) suggests multiple ways that increasing recovery can affect virulence evolution. Classically, evolution maximizes \(R_0 = \frac{\beta S}{v+\gamma}\), where \(\gamma\) is the recovery rate. So if there is a transmission-virulence trade-off, such that \(\beta\) is a saturating function of \(v\) (e.g., \(\beta=\beta_0 v/(1+v)\)) then you would expect increasing \(\gamma\) to cause the evolutionarily stable \(v\) to increase, as increased recovery causes each individual infection to contribute less overall to parasite fitness. On the other hand, if there is a recovery-virulence trade-off, such that \(\gamma\) is an accelerating function of \(v\) (e.g., \(\gamma=\gamma_0 v^2\)) then you would expect increasing \(\gamma_0\) to cause the evolutionarily stable \(v\) to decrease, because each individual infection becomes more important to overall fitness. Thus we can compare the results when infections are always acute to always chronic to see which of these trade-offs is more important in driving parasite evolution.
Figure 3.1: Evolutionary dynamics of per-parasite virulence when hosts start out immunologically naive and all infections are chronic.
Figure 3.2: Evolutionary dynamics of per-parasite virulence when hosts start out Th2-biased and all infections are acute.
From these results, it is clear that, when infections are acute rather than chronic, the parasite evolves to high virulence. To understand why, we can look at how increasing replication rate (the benefit of virulence to the parasite) affects the within-host dynamics when the host is initially Th1-biased and infections are acute. I will show these dynamics for a range of replication rates, but also a range of doses, since increasing replication rate should also increase the inoculating dose. What you can see is that the within-host dynamics are much more sensitive to the replication rate (\(b_p\)) than they are to the inoculating dose, and higher values of \(b_p\) lead to both larger and longer infections; increasing dose tends to increase the peak parasite load, but also slightly shortens infections. In other words, there is no trade-off between within-host replication and recovery in this system: evolutionary changes towards higher virulence actually lead to lower recovery rates making it entirely unsurprising that virulence increases.
Figure 3.3: Within-host dynamics for different initial parasite doses and parasite replication rates (bp), when the host starts out Th2-biased and all infections are acute.
However, why does virulence stop increasing? Classic theory would predict that if increasing virulence always reduces recovery that virulence should evolve to become infinitely large. However, if we look at the within-host dynamics at the evolved virulence, we see that infections are no longer acute at this high replication rate - rather they are chronic, albeit at a much lower parasite load. Once the infections become chronic, the evolutionary pressures shift, preventing further evolutionary increases in virulence.
Figure 3.4: Within-host dynamics for different initial parasite doses at the evolved virulence and replication rate when the host starts out Th2-biased and all infections are acute.
When I allow for infection outcome to vary, either because every infection starts out Th1-biased or because the initial immune state is chosen randomly, we see evolutionary dynamics that look more like those in the case where all infections are chronic, although when there is more variation in the infection outcome, we observe a transient increase in virulence early on before eventually settling on lower virulence.
Figure 3.5: Evolutionary dynamics of per-parasite virulence when hosts are Th1-biased at infection and infection outcome is variable.
Figure 3.6: Evolutionary dynamics of per-parasite virulence when hosts are immunologically variable at infection and thus infection outcome is variable.
This is true even when initial immunity is Th2-biased, which should produce a lot of acute infections that would drive the evolution of higher virulence.
Figure 3.7: Evolutionary dynamics of per-parasite virulence when hosts are immunologically variable at infection and thus infection outcome is variable.
This suggests that evolution is largely being driven by chronic infections, and it must be the case that parasites with lower virulence are more likely to produce chronic infections than parasites with higher virulence. We can check that intuition: indeed, at the starting virulence level, chronic infections are really rare, and they are more common at the evolved virulence. However, even at the evolved lower virulence, most infections are still acute! Despite that, the overall evolutionary trend is towards reduced virulence because chronic infections have such a higher fitness that the rare strains that are able to sustain chronic infections end up driving parasite evolution.
Figure 3.8: Within-host dynamics at the original and evolved virulence/replication rate when both dose and initial immunity are variable. Here I generated 100 replicate trajectories where both dose and initial Th2-ness are randomly chosen, and I compute the probability that the infection will be chronic, rather than acute across all initial condition choices.
Figure 3.9: The probability of chronic infection and peak and duration of infection in acute infections for different values of replication rate. To compute these measures, I simulated the within-host dynamics at each value of replication rate for 500 different doses and initial Th2ness values, where initial Th2ness varied between 400 and 1000. You can see that, at the initial replication rate, increasing replication would increase the peak parasite load and infection duration, but at the cost of decreasing the probability of a chronic infection. Evolution pushes the system towards lower replication rates where the peak parasitemia is lower in acute infections but the probability of a chronic infection is higher.
Finally, we can compare the evolved virulences across the four different cases. While these differences might look slight, they really are not. When infections are always acute because the immunological landscape is Th2-biased, the per-parasite virulence is almost 40 times as large than when infections are always chronic because the immunological landscape is naive.